@import url('tldraw/tldraw.css');

.tldraw__editor {
	height: 100%;
	position: relative;
}

:root {
	font-family:
		Inter,
		-apple-system,
		'system-ui',
		'Segoe UI',
		'Noto Sans',
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';

	font-weight: 500;
	color: var(--text-color-0);
	line-height: 1.6;
	touch-action: none;
}

body {
	font-size: 12px;
	overscroll-behavior: none;
}

/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
	box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
	margin: 0;
}
/*
  5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}
/*
  6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
	font: inherit;
}
/*
  7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

html {
	height: 100%;
}

html,
body {
	overscroll-behavior-x: none;
}

body {
	display: flex;
	height: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-smooth: antialiased;
	text-rendering: optimizeLegibility;
}

div {
	box-sizing: border-box;
}

a {
	color: inherit;
	text-decoration: none;
}

.icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background-color: currentColor;
}

.scroll-light {
	scrollbar-width: thin;
}
.scroll-light::-webkit-scrollbar {
	display: block;
	width: 8px;
	height: 8px;
	position: absolute;
	top: 0;
	left: 0;
	background-color: inherit;
}
.scroll-light::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 10px;
}
.scroll-light::-webkit-scrollbar-thumb {
	background-clip: padding-box;
	width: 0;
	min-height: 36px;
	border: 2px solid transparent;
	border-radius: 6px;
	background-color: rgba(0, 0, 0, 0.25);
}
.scroll-light::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.3);
}

/* ------------------- Error Page ------------------- */

.error-page {
	display: flex;
	inset: 0px;
	position: absolute;
	align-items: center;
	justify-content: center;
}

.error-page__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
}

.error-page__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* text-header mb-sm */
.error-page__content h1 {
	font-size: 20px;
	font-weight: 800;
	margin-bottom: 0.5rem;
}

/* text-primary-bold text-grey */
.error-page__content p {
	font-size: 14px;
	color: var(--text-color-2);
}

/* text-primary-bold text-grey */
.error-page__container a {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-color-2);
	padding: 12px 4px;
	text-decoration: underline;
}

/* ------------------ Board history ----------------- */

.board-history {
	padding: 64px;
}

.board-history__list {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.board-history__list a {
	padding: 8px 8px 8px 0px;
}

.board-history__list a:hover {
	text-decoration: underline;
}

.board-history__restore {
	position: fixed;
	top: 8px;
	right: 8px;
}

/* ----------------- Iframe warning ----------------- */

.iframe-warning__container {
	position: absolute;
	inset: 0px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.iframe-warning__link {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 32px;
	font-size: 14px;
}

.iframe-warning__link svg {
	width: 14px;
	height: 14px;
}

/* ------------------ Da Share Zone ----------------- */

.tlui-style-panel__wrapper {
	margin-top: 2px;
}

.tlui-share-zone__connection-status {
	width: 8px;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
}

.tlui-share-zone__connection-status::after {
	content: '';
	width: 8px;
	height: 8px;
	background-color: currentColor;
	border-radius: 100%;
}

.tlui-share-zone__button-wrapper {
	all: unset;
	padding: 2px;
	position: relative;
	pointer-events: all;
	position: relative;
	cursor: pointer;
}

.tlui-share-zone__button {
	font-family: inherit;
	font-size: inherit;
	height: 36px;
	border: 2px solid var(--color-background);
	border-radius: 8px;
	background-color: var(--color-selected);
	color: var(--color-selected-contrast);
	text-shadow: none;
	pointer-events: all;
	position: relative;
	font-weight: 600;
}

.tlui-share-zone__export-button {
	font-family: inherit;
	font-size: inherit;
	height: 36px;
	border: 2px solid var(--color-text);
	border-radius: 8px;
	background-color: var(--color-text);
	color: var(--color-selected-contrast);
	text-shadow: none;
	pointer-events: all;
	position: relative;
	font-weight: 600;
}

.tlui-share-zone__button::before {
	position: absolute;
	display: block;
	content: '';
	inset: 0px;
	background-color: var(--color-background);
	border-top-left-radius: var(--radius-3);
	border-bottom-right-radius: var(--radius-3);
	border-bottom-left-radius: var(--radius-3);
	z-index: -1;
}

.tlui-share-zone__button:active {
	color: var(--color-selected-contrast);
}

@media (hover: hover) {
	.tlui-share-zone__button:hover {
		color: var(--color-selected-contrast);
	}

	.tlui-share-zone__button:not(:disabled, :focus-visible):hover {
		color: var(--color-selected-contrast);
	}
}

.tlui-share-zone__popover {
	font-size: 12px;
	font-weight: inherit;
	width: 200px;
	max-width: 100%;
	max-height: 100%;
	position: relative;
}

.tlui-share-zone__qr-code {
	width: 200px;
	height: 200px;
	cursor: pointer;
	background: none;
	background-color: var(--color-muted-2);
	background-size: cover;
	border: none;
}

.tlui-share-zone__spinner {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tlui-share-zone__details {
	font-size: 11px;
	font-weight: 400;
	padding: var(--space-4);
	color: var(--color-text-1);
	line-height: 1.5;
	margin: 0px;
}

.tlui-share-zone__status {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	position: relative;
	left: -4px;
}

.tlui-share-zone__status > div {
	width: 8px;
	height: 8px;
	border-radius: 100%;
}

/* ------------------- People Menu ------------------- */

.tlui-layout[data-breakpoint='0'] .tlui-offline-indicator {
	margin-top: 4px;
}

/* Document Name */

.tlui-document-name__inner {
	border-radius: calc(var(--radius-2) + var(--space-2));
	background-color: var(--color-background);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	margin-top: 4px;
	padding-left: 4px;
	max-width: 100%;
	color: var(--color-text);
	text-shadow: 1px 1px 0px var(--color-background);
	pointer-events: all;
}

.tlui-document-name__input__wrapper {
	position: relative;
	max-width: calc(100% - 36px);
	display: flex;
	flex: auto;
}

.tlui-document-name__input,
.tlui-document-name__text {
	padding: var(--space-2) var(--space-3);
	white-space: pre;
	line-height: 24px;
	min-width: 62px;
}

.tlui-document-name__input {
	position: absolute;
	padding: var(--space-1) var(--space-3);
	margin-top: 2px;
	width: 100%;
	border-radius: var(--radius-2);
	color: var(--color-text);
	background: transparent;
}
.tlui-document-name__input:focus {
	box-shadow: inset 0px 0px 0px 1px var(--color-selected);
	border: none;
}

.tlui-document-name__text {
	width: 100%;
	color: var(--color-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tlui-document-name__text__hidden {
	opacity: 0;
	pointer-events: none;
}

.tlui-document-name__menu {
	width: 36px;
	min-width: 36px;
	height: 36px;
}

/* -------------------- Snowstorm ------------------- */

.tl-snowflake {
	position: absolute;
	background-color: #ccc;
	border-radius: 100%;
	pointer-events: none;
}

.tl-snowstorm {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}
